
package gov.chinatax.ctcps.generator.form;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for zfzbZfxmzt.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="zfzbZfxmztForm"
 */
public class ZfzbZfxmztForm extends ActionForm {

   private final static SimpleDateFormat FORMAT = new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

   private java.lang.String _xh = null;
   private java.lang.String _xmbh = null;
   private java.lang.String _nd = null;
   private java.lang.String _yf = null;
   private java.lang.String _dyjbr = null;
   private java.lang.String _dyjbrDh = null;
   private java.lang.String _dejbr = null;
   private java.lang.String _dejbrDh = null;
   private java.math.BigDecimal _zfje = null;
   private java.math.BigDecimal _sqje = null;
   private java.lang.String _nrzjzfrq = null;
   private java.lang.String _szwz = null;
   private java.lang.String _xmzt = null;
   private java.lang.String _zt1 = null;
   private java.lang.String _zt2 = null;

   /**
    * Standard constructor.
    */
   public ZfzbZfxmztForm() {
   }

   /**
    * Returns the xh
    *
    * @return the xh
    */
   public java.lang.String getXh() {
      return _xh;
   }

   /**
    * Sets the xh
    *
    * @param xh the new xh value
    */
   public void setXh(java.lang.String xh) {
      _xh = xh;
   }
   /**
    * Returns the xmbh
    *
    * @return the xmbh
    */
   public java.lang.String getXmbh() {
      return _xmbh;
   }

   /**
    * Sets the xmbh
    *
    * @param xmbh the new xmbh value
    */
   public void setXmbh(java.lang.String xmbh) {
      _xmbh = xmbh;
   }
   /**
    * Returns the nd
    *
    * @return the nd
    */
   public java.lang.String getNd() {
      return _nd;
   }

   /**
    * Sets the nd
    *
    * @param nd the new nd value
    */
   public void setNd(java.lang.String nd) {
      _nd = nd;
   }
   /**
    * Returns the yf
    *
    * @return the yf
    */
   public java.lang.String getYf() {
      return _yf;
   }

   /**
    * Sets the yf
    *
    * @param yf the new yf value
    */
   public void setYf(java.lang.String yf) {
      _yf = yf;
   }
   /**
    * Returns the dyjbr
    *
    * @return the dyjbr
    */
   public java.lang.String getDyjbr() {
      return _dyjbr;
   }

   /**
    * Sets the dyjbr
    *
    * @param dyjbr the new dyjbr value
    */
   public void setDyjbr(java.lang.String dyjbr) {
      _dyjbr = dyjbr;
   }
   /**
    * Returns the dyjbrDh
    *
    * @return the dyjbrDh
    */
   public java.lang.String getDyjbrDh() {
      return _dyjbrDh;
   }

   /**
    * Sets the dyjbrDh
    *
    * @param dyjbrDh the new dyjbrDh value
    */
   public void setDyjbrDh(java.lang.String dyjbrDh) {
      _dyjbrDh = dyjbrDh;
   }
   /**
    * Returns the dejbr
    *
    * @return the dejbr
    */
   public java.lang.String getDejbr() {
      return _dejbr;
   }

   /**
    * Sets the dejbr
    *
    * @param dejbr the new dejbr value
    */
   public void setDejbr(java.lang.String dejbr) {
      _dejbr = dejbr;
   }
   /**
    * Returns the dejbrDh
    *
    * @return the dejbrDh
    */
   public java.lang.String getDejbrDh() {
      return _dejbrDh;
   }

   /**
    * Sets the dejbrDh
    *
    * @param dejbrDh the new dejbrDh value
    */
   public void setDejbrDh(java.lang.String dejbrDh) {
      _dejbrDh = dejbrDh;
   }
   /**
    * Returns the zfje
    *
    * @return the zfje
    */
   public java.math.BigDecimal getZfje() {
      return _zfje;
   }

   /**
    * Sets the zfje
    *
    * @param zfje the new zfje value
    */
   public void setZfje(java.math.BigDecimal zfje) {
      _zfje = zfje;
   }
   /**
    * Returns the sqje
    *
    * @return the sqje
    */
   public java.math.BigDecimal getSqje() {
      return _sqje;
   }

   /**
    * Sets the sqje
    *
    * @param sqje the new sqje value
    */
   public void setSqje(java.math.BigDecimal sqje) {
      _sqje = sqje;
   }
   /**
    * Returns the nrzjzfrq
    *
    * @return the nrzjzfrq
    */
   public java.lang.String getNrzjzfrq() {
      return _nrzjzfrq;
   }

   /**
    * Sets the nrzjzfrq
    *
    * @param nrzjzfrq the new nrzjzfrq value
    */
   public void setNrzjzfrq(java.lang.String nrzjzfrq) {
      _nrzjzfrq = nrzjzfrq;
   }
   /**
    * Returns the szwz
    *
    * @return the szwz
    */
   public java.lang.String getSzwz() {
      return _szwz;
   }

   /**
    * Sets the szwz
    *
    * @param szwz the new szwz value
    */
   public void setSzwz(java.lang.String szwz) {
      _szwz = szwz;
   }
   /**
    * Returns the xmzt
    *
    * @return the xmzt
    */
   public java.lang.String getXmzt() {
      return _xmzt;
   }

   /**
    * Sets the xmzt
    *
    * @param xmzt the new xmzt value
    */
   public void setXmzt(java.lang.String xmzt) {
      _xmzt = xmzt;
   }
   /**
    * Returns the zt1
    *
    * @return the zt1
    */
   public java.lang.String getZt1() {
      return _zt1;
   }

   /**
    * Sets the zt1
    *
    * @param zt1 the new zt1 value
    */
   public void setZt1(java.lang.String zt1) {
      _zt1 = zt1;
   }
   /**
    * Returns the zt2
    *
    * @return the zt2
    */
   public java.lang.String getZt2() {
      return _zt2;
   }

   /**
    * Sets the zt2
    *
    * @param zt2 the new zt2 value
    */
   public void setZt2(java.lang.String zt2) {
      _zt2 = zt2;
   }


   /**
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    */
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
      ActionErrors errors = new ActionErrors();
      // test for nullity
      if(getXh() == null) {
         errors.add("xh", new ActionError("error.xh.required"));
      }
      // TODO test format/data
      return errors;
   }
}
